package com.zhengdongzulin.zuke.parser

/**
 * jeff
 * 2021-03-26 11:24:37
 */
class Response<T> {
    var code = 0
        private set
    var msg: String? = null
        private set
    var data: T? = null
        private set

    fun setErrorCode(errorCode: Int) {
        code = errorCode
    }

    fun setErrorMsg(errorMsg: String?) {
        msg = errorMsg
    }

    fun setData(result: T) {
        this.data = result
    }
}